import { Description, Feature, Glyph, Impassable, Opaque } from '$lib/components';
import { Door } from '$lib/door';
import { defineComponent, defineQuery } from '$lib/ecs';

export const Entrance = defineComponent('Entrance', {});

export const entranceQuery = defineQuery([Entrance]);

export const doorTemplate = [
  [Feature],
  [Door],
  [Glyph, {
    glyph: '+',
  }],
  [Description, {
    summary: 'door',
    description: "Just another door to open...",
  }],
  [Opaque],
  [Impassable],
];
